home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 February: Tool Chest / Dev.CD Feb 94.toast / Tool Chest / Development Platforms / MPW Related / MPW Interfaces / CIncludes / Notification.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-09-17  |  1.2 KB  |  61 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        Notification.h
  3.  
  4.     Copyright:    © 1983-1993 by Apple Computer, Inc.
  5.                 All rights reserved.
  6.  
  7.     Version:    System 7.1 for ETO #11
  8.     Created:    Tuesday, March 30, 1993 18:00
  9.  
  10. */
  11.  
  12. #ifndef __NOTIFICATION__
  13. #define __NOTIFICATION__
  14.  
  15. #ifndef __TYPES__
  16. #include <Types.h>
  17. #endif
  18.  
  19. #ifndef __OSUTILS__
  20. #include <OSUtils.h>
  21. #endif
  22.  
  23.  
  24. enum {
  25.  
  26.     nmType = 8
  27. };
  28.  
  29. typedef pascal void (*NMProcPtr)(struct NMRec *);
  30.  
  31. struct NMRec {
  32.     QElemPtr qLink;     /*next queue entry*/
  33.     short qType;        /*queue type -- ORD(nmType) = 8*/
  34.     short nmFlags;      /*reserved*/
  35.     long nmPrivate;     /*reserved*/
  36.     short nmReserved;   /*reserved*/
  37.     short nmMark;       /*item to mark in Apple menu*/
  38.     Handle nmIcon;      /*handle to small icon*/
  39.     Handle nmSound;     /*handle to sound record*/
  40.     StringPtr nmStr;    /*string to appear in alert*/
  41.     NMProcPtr nmResp;   /*pointer to response routine*/
  42.     long nmRefCon;      /*for application use*/
  43. };
  44.  
  45. typedef struct NMRec NMRec;
  46. typedef NMRec *NMRecPtr;
  47.  
  48.  
  49. #ifdef __cplusplus
  50. extern "C" {
  51. #endif
  52. pascal OSErr NMInstall(NMRecPtr nmReqPtr)
  53.     = {0x205F,0xA05E,0x3E80}; 
  54. pascal OSErr NMRemove(NMRecPtr nmReqPtr)
  55.     = {0x205F,0xA05F,0x3E80}; 
  56. #ifdef __cplusplus
  57. }
  58. #endif
  59.  
  60. #endif
  61.